Calling a coroutine builder (e.g., launch()) returns a Job that controls the work being done.

From within the lambda expression passed to the coroutine builder or withContext(), you can use coroutineContext[Job] to find the current Job.

You can learn more about this in:
Tags:
Run Edit